package com.winchain.chainbill.bill.biz.repurchase.vo;

import com.winchain.chainbill.bill.base.po.CbRec;
import com.winchain.chainbill.bill.base.po.CbRpur;
import java.math.BigDecimal;
import javax.persistence.Column;
import org.springframework.beans.BeanUtils;

public class BillRpur extends CbRpur {
	@Column(name = "bill_code")
	private String billCode;
	@Column(name = "bill_type")
	private String billType;
	@Column(name = "root_id")
	private String rootId;
	@Column(name = "prnt_id")
	private String prntId;
	@Column(name = "bill_amt")
	private BigDecimal billAmt;
	private Integer cbHldrLvl;
	@Column(name = "cb_opt_seq")
	private Integer cbOptSeq;
	@Column(name = "snd_date")
	private String sndDate;
	@Column(name = "exp_date")
	private String expDate;
	@Column(name = "bill_state")
	private String billState;
	private String rpmtState;
	private String finId;
	private String finNm;

	public String getBillCode() {
		return this.billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getBillType() {
		return this.billType;
	}

	public void setBillType(String billType) {
		this.billType = billType;
	}

	public String getRootId() {
		return this.rootId;
	}

	public void setRootId(String rootId) {
		this.rootId = rootId;
	}

	public String getPrntId() {
		return this.prntId;
	}

	public void setPrntId(String prntId) {
		this.prntId = prntId;
	}

	public BigDecimal getBillAmt() {
		return this.billAmt;
	}

	public void setBillAmt(BigDecimal billAmt) {
		this.billAmt = billAmt;
	}

	public Integer getCbHldrLvl() {
		return this.cbHldrLvl;
	}

	public void setCbHldrLvl(Integer cbHldrLvl) {
		this.cbHldrLvl = cbHldrLvl;
	}

	public Integer getCbOptSeq() {
		return this.cbOptSeq;
	}

	public void setCbOptSeq(Integer cbOptSeq) {
		this.cbOptSeq = cbOptSeq;
	}

	public String getSndDate() {
		return this.sndDate;
	}

	public void setSndDate(String sndDate) {
		this.sndDate = sndDate;
	}

	public String getExpDate() {
		return this.expDate;
	}

	public void setExpDate(String expDate) {
		this.expDate = expDate;
	}

	public String getBillState() {
		return this.billState;
	}

	public void setBillState(String billState) {
		this.billState = billState;
	}

	public String getRpmtState() {
		return this.rpmtState;
	}

	public void setRpmtState(String rpmtState) {
		this.rpmtState = rpmtState;
	}

	public String getFinId() {
		return this.finId;
	}

	public void setFinId(String finId) {
		this.finId = finId;
	}

	public String getFinNm() {
		return this.finNm;
	}

	public void setFinNm(String finNm) {
		this.finNm = finNm;
	}

	public CbRec getRec() {
		CbRec record = new CbRec();
		BeanUtils.copyProperties(this, record);
		record.setOptSeq(getCbOptSeq());
		record.setHldrLvl(getCbHldrLvl());
		return record;
	}

	public CbRpur getRpur() {
		CbRpur rpur = new CbRpur();
		BeanUtils.copyProperties(this, rpur);
		return rpur;
	}
}
